﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;
using Common;
using Common.Views;

namespace ElectrosLtdApplication.Models
{
    public class LogEntriesModel
    {
        public Guid FaultID { get; set; }
        public SelectList Users { get; set; }
        public SelectList Faults { get; set; }
        IList<UsersView> users = new UsersServ.UsersServiceClient().GetUsernames();
        IList<Fault> faults = new FaultsServ.FaultsServiceClient().GetAllFaults();

        public LogEntriesModel()
        {
            Users = new SelectList(users, "Username", "Username");
            Faults = new SelectList(faults, "FaultID", "FaultID");
        }
    }
}